package com.googlecode.linkmein.domain;

public class Gossipy {
    public static final int ENGLISH_NAME = 0;
    public static final int CHINESE_NAME = 1;
    public static final int CONSTELLATION = 2;
    public static final int HOBBIES = 3;
    public static final int HATEDFOOD = 4;
    public static final int PREFEREDFOOD = 5;
    public static final int PREFEREDDRINK = 6;
    public static final int SCARED = 7;
    public static final int GROUP = 8;
    public static final int COMMENT = 9;
    public static final int INSTRUMENT = 10;
    public static final int PREFEREDMUSIC = 11;
    public static final int PREFEREDMOVIE = 12;
    public static final int IDOL = 13;
    public static final int EMBARRASSING = 14;

    private BasicAttributes attributes;
    private Preference preference;
    private Group groups;
    private String comment;
    private String embarrassing;
    public static final Gossipy NULL = new NullGossipy();


    public Gossipy(BasicAttributes attributes,
                   Preference preference, Group groups, String comment, String embarrassing) {
        this.attributes = attributes;
        this.preference = preference;
        this.groups = groups;
        this.comment = comment;
        this.embarrassing = embarrassing;
    }

    public boolean isSameName(Name name) {
        return attributes.isSameName(name);
    }

    public String getEmbarrassing() {
        return embarrassing;
    }

    public String comment() {
        return comment;
    }

    public Name getName() {
        return attributes.getName() == null ? Name.NULL : attributes.getName();
    }

    public BasicAttributes getBasicAttributes() {
        return this.attributes == null ? BasicAttributes.NULL : this.attributes;
    }

    public Preference getPreference() {
        return preference == null ? Preference.NULL : this.preference;
    }
}
